package com.ytc.content.controller;

import com.ytc.commons.model.dto.TeacherVo;
import com.ytc.commons.model.vo.ResponseResult;
import com.ytc.commons.model.vo.TeacherDto;
import com.ytc.content.service.CourseTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TeacherController {

    @Autowired
    private CourseTeacherService courseTeacherService;

    //新增讲师
    @PostMapping("/courseTeacher")
    public ResponseResult saveTeacher(@RequestBody TeacherDto dto){

        return courseTeacherService.saveTeacher(dto);
    }
}
